<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>My Homework -- 作业详细页</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel='stylesheet' type='text/css' media='all' href='__TMPL__Public/css/book.css' />
		<script src="__TMPL__Public/jquery/js/jquery-1.6.2.min.js" type="text/javascript" ></script>
		<script src="__TMPL__Public/jquery/js/jquery-ui-1.8.16.custom.min.js" type="text/javascript" ></script>
	</head>
	<body id="threeColLayout" class="home">
		<div id="wrapper">
			<div id="header">
				<h1>My Homework</h1>
				<ul id="mainNav">
					<li>
						<a href="__APP__/Index/studentMain" id="home">我的主页</a>
					</li>
					<li>
						<a href="__APP__/Group/myGroup">我的小组</a>
					</li>
					<li>
						<a href="__APP__/Group/allGroups">所有小组</a>
					</li>
					<li>
						<a href="__APP__/Login/logout">退出</a>
					</li>
				</ul>
			</div><!-- end #header -->
			<div id="primaryContent">
				<div class="box interviews">
					<h2>作业信息</h2>
					<div class="cbb">
						<h3>{$homework['head']}</h3></br>
						<div>
							{$homework['content']}
						</div>
						<span>截止时间</span></br>
						<span>{$homework['deadline']|date="Y-m-d",###}</span></br></br>
						<h3>提交作业(请上传.zip压缩包)</h3>
						<form action="__APP__/View/upload" id="form1" method="post" enctype="multipart/form-data">
							<input type="hidden" name="hw_id" id="hw_id" value="{$homework['id']}"/>
							<input type="file" name="hw" id="hw" />
							<input type="submit" name="submit" value="提交" />
						</form>
						</br> <h3>本小组已提交的作业：</h3>
						<table border="1">
							<tr>
								<th>组员</th>
								<th>学号</th>
								<th>应用链接</th>
								<th>操作</th>
							</tr>
							<volist name="members_hw" id="member_hw">
								<if condition="$member_hw['link'] neq null">
									<tr>
										<td>{$member_hw['name']}</td>
										<td>{$member_hw['studentid']}</td>
										<td><a href="__ROOT__/MyHomework/{$member_hw['link']}">点击</a></td>
										<td><a href="__ROOT__/MyHomework/{$member_hw['file_location']}">下载</a></td>
									</tr>
								</if>
							</volist>
						</table>
						</br>
						<if condition="$group['leader_id'] eq $student['id']">
							<a href="__APP__/View/submitResults?hw_id={$homework['id']}"}>提交组员评审结果</a>
						</if>
					</div>
				</div>
			</div>
			<!-- end #primaryContent -->
			<div id="sideContent">
				<div class="box">
					<h2>个人信息</h2>
					<div class="cbSide">
						<h3>姓名：</h3><h3>{$student['name']}</h3>
						<br/>
						<h3>学号：</h3><h3>{$student['studentid']}</h3>
						<br/>
					</div>
				</div>
			</div>
			<!-- end #sideContent -->
			<div id="footer"></div>
			<!-- end #footer -->
		</div><!-- end #wrapper -->
	</body>
</html>